@import '~antd/lib/style/themes/default.less';
@import '~@/utils/utils.less';

.iconGroup {
  i {
    margin-left: 16px;
    color: @text-color-secondary;
    cursor: pointer;
    transition: color 0.32s;
    &:hover {
      color: @text-color;
    }
  }
}

.rankingList {
  position: relative;
  top: 4px;
  margin: 0 0 25px 0;
  padding: 0;
  list-style: none;
  li {
    .clearfix();
    display: flex;
    align-items: center;
    margin-top: 16px;
    span {
      color: @text-color;
      font-size: 14px;
      line-height: 22px;
    }
    .rankingItemNumber {
      display: inline-block;
      width: 20px;
      height: 20px;
      margin-top: 1.5px;
      margin-right: 16px;
      font-weight: 600;
      font-size: 12px;
      line-height: 20px;
      text-align: center;
      color: #fff;
      background: #3d96ff;
      border-radius: 20px;
      &.active {
        background-color: #f0525e;
      }
    }
    .rankingItemTitle {
      color: #fff;
      font-size: 14px;
      flex: 1;
      margin-right: 8px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .rankingItemValue {
      color: #fff;
      font-size: 14px;
    }
  }
}

.salesExtra {
  display: inline-block;
  margin-right: 24px;
  a {
    margin-left: 24px;
    color: rgba(255, 255, 255, 0.6);
    &:hover {
      color: #fff;
    }
    &.currentDate {
      color: #fff;
    }
  }
}

.salesCardContent {
  .salesBar {
    padding: 0 0 32px 32px;
  }
  .salesRank {
    padding: 0 32px 32px 72px;
  }
  :global {
    .ant-tabs-bar {
      padding-left: 16px;
      .ant-tabs-nav .ant-tabs-tab {
        padding-top: 16px;
        padding-bottom: 14px;
        line-height: 24px;
      }
    }
    .ant-tabs-extra-content {
      padding-right: 24px;
      line-height: 55px;
    }
    .ant-card-head {
      position: relative;
    }
    .ant-card-head-title {
      align-items: normal;
    }
  }
}

.salesCardExtra {
  height: inherit;
}

.salesTypeRadio {
  position: absolute;
  right: 54px;
  bottom: 12px;
}
.salesMapBg {
  :global {
    .ant-card {
      background: rgba(60, 75, 142, 0.3);
    }
  }
}
.salesCardBg {
  margin-top: 24px;
  :global {
    .ant-card {
      background: rgba(60, 75, 142, 0.3);
    }
    .ant-tabs-tab {
      color: rgba(255, 255, 255, 0.6);
    }
    .ant-tabs-tab-active.ant-tabs-tab {
      color: #fff;
    }
    .ant-tabs-bar {
      margin-bottom: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    }
  }
}

.rangePick {
  :global {
    .ant-calendar-picker-input {
      background: transparent;
      border: 1px solid rgba(61, 150, 255, 1);
      color: rgba(255, 255, 255, 0.6);
    }
    .ant-calendar-range-picker-separator,
    .ant-calendar-picker-icon {
      color: rgba(255, 255, 255, 0.6);
    }
    .ant-calendar-picker-clear {
      color: #000;
    }
  }
}

.offlineCard {
  :global {
    .ant-tabs-ink-bar {
      bottom: auto;
    }
    .ant-tabs-bar {
      border-bottom: none;
    }
    .ant-tabs-nav-container-scrolling {
      padding-right: 40px;
      padding-left: 40px;
    }
    .ant-tabs-tab-prev-icon::before {
      position: relative;
      left: 6px;
    }
    .ant-tabs-tab-next-icon::before {
      position: relative;
      right: 6px;
    }
    .ant-tabs-tab-active h4 {
      color: @primary-color;
    }
  }
}

.twoColLayout {
  .salesCard {
    height: ~'calc(100% - 24px)';
  }
}

.trendText {
  margin-left: 8px;
  color: @heading-color;
}

.moneyScroll {
  &::-webkit-scrollbar {
    height: 0;
  }
}
.cargoTabs {
  :global {
    .ant-tabs-nav-container {
      height: 41px;
      line-height: 18px;
    }
    .ant-tabs-bar {
      border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    }
    .ant-tabs-nav,
    .ant-tabs-tab-prev-icon,
    .ant-tabs-tab-next-icon {
      color: rgba(255, 255, 255, 0.6);
    }
    .ant-tabs-tab-active.ant-tabs-tab {
      color: #fff;
    }
  }
}
.receiptHeight {
  height: 170px;
  border: none;
  background: rgba(60, 75, 142, 0.3);
  :global {
    .ant-tabs-nav-container {
      height: 41px;
      line-height: 18px;
    }
  }
}

@media screen and (max-width: @screen-lg) {
  .salesExtra {
    display: none;
  }

  .rankingList {
    li {
      span:first-child {
        margin-right: 8px;
      }
    }
  }
}

@media screen and (max-width: @screen-md) {
  .rankingTitle {
    margin-top: 16px;
  }
  .salesCard .salesBar {
    padding: 16px;
  }
}

@media screen and (max-width: @screen-sm) {
  .salesExtraWrap {
    display: none;
  }
  .salesCard {
    :global {
      .ant-tabs-content {
        padding-top: 22px;
      }
    }
  }
}

@media screen and (max-width: 1800px) {
  .adaptationFontSize {
    font-size: 30px;
  }
  .suffixFontSize {
    font-size: 12px;
    line-height: 54px;
  }
  .introduceTop {
    margin-top: 12%;
  }
}
@media screen and (min-width: 1801px) {
  .adaptationFontSize {
    font-size: 50px;
  }
  .suffixFontSize {
    font-size: 20px;
    line-height: 96px;
  }
  .introduceTop {
    margin-top: 4%;
  }
}
